RandSeed

Syntax: @RandSeed numvar

The RandSeed command can be used to set the seed of the random number generator in XpertRule. If the numeric variable numvar is set to >= 0, then the generator is set to that specific seed value. If numvar is set to < 0, then the generator is set back to random.

One advantage of setting the seed of the random number generator is that repeated runs will then give results that are more readily comparable. That is, the 'starting point' will now be consistent.

Examples

@RandSeed 1

sets the random number generator seed to 1.

@RandSeed -1

sets the random number generator seed to a random start.

@RandSeed CalcVal

sets the random number generator seed to the numeric value held in the Knowledge Explorer variable CalcVal.